<?php 
	$newpass = $_GET['p'];
	include('dbConnection.php');
	mysql_query("UPDATE users SET userPassword = '$newpass', status = 'ACTIVE', loginAttempts = '0' WHERE userTypeId = '2'");
	$_SESSION['page'] = 'index.php';
	header( 'Location: ../' ) ;
?>